import request from '@/utils/request'

// 查询客车信息列表
export function listBus(query) {
  return request({
    url: '/bus/bus/list',
    method: 'get',
    params: query
  })
}

// 查询客车信息详细
export function getBus(busID) {
  return request({
    url: '/bus/bus/' + busID,
    method: 'get'
  })
}

// 新增客车信息
export function addBus(data) {
  return request({
    url: '/bus/bus',
    method: 'post',
    data: data
  })
}

// 修改客车信息
export function updateBus(data) {
  return request({
    url: '/bus/bus',
    method: 'put',
    data: data
  })
}

// 删除客车信息
export function delBus(busID) {
  return request({
    url: '/bus/bus/' + busID,
    method: 'delete'
  })
}
